package top.glkj.hms.controller.activity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import top.glkj.hms.utils.Result;
import top.glkj.hms.utils.ResultFactory;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2020/12/22 12:37
 */
@Api(tags = "活动管理")
@RestController
@RequestMapping("/activity/management")
public class ActivityManagementController {

    @ApiOperation("获取活动列表")
    @GetMapping
    public Result getActivity() {
        return ResultFactory.isSuccess();
    }

    @ApiOperation("添加活动列表")
    @PostMapping
    public Result addActivity() {
        //todo
        return ResultFactory.isSuccess();
    }

    @ApiOperation("添加活动列表")
    @PutMapping
    public Result updateActivity() {
        //todo
        return ResultFactory.isSuccess();
    }

    @ApiOperation("添加活动列表")
    @DeleteMapping
    public Result deleteActivity() {
        //todo
        return ResultFactory.isSuccess();
    }
}
